import request from 'UTIL/request'

// 外勤签到列表
export function LegworkList(data) {
  return request({
    url: 'crmActivity/queryOutworkList',
    method: 'POST',
    data: data,
		headers: {
      'Content-Type': 'application/json;charset=UTF-8'
		},
		hideLoading: true
  })
}

// 外勤签到
export function LegworkClock(data) {
  return request({
    url: 'crmActivity/outworkSign',
    method: 'POST',
    data: data,
		headers: {
      'Content-Type': 'application/json;charset=UTF-8'
		},
		hideLoading: true
  })
}

// 外勤签到删除
export function DeleteById(data) {
  return request({
    url: 'crmActivity/deleteOutworkSign',
    method: 'POST',
    data: data,
		requestType: 'form'
  })
}

// 外勤签到统计
export function LegworkStatistics(data) {
  return request({
    url: 'crmActivity/queryOutworkStats',
    method: 'POST',
    data: data,
    requestType: 'form'
  })
}

// 查询允许使用相册
export function LegworkGetConfig(data) {
  return request({
    url: 'crmActivity/queryPictureSetting',
    method: 'POST',
    data: data
  })
}

// 修改是否允许使用相册
export function LegworkSetConfig(data) {
  return request({
    url: 'crmActivity/setPictureSetting',
    method: 'POST',
    data: data
  })
}
